package com.oceansoft.mobile.econsole.modules.ascproject.persistence;

import com.oceansoft.mobile.econsole.modules.ascproject.entity.MydEvaluation;
import com.oceansoft.mobile.econsole.modules.ascproject.entity.ProjectInfo;
import com.oceansoft.mobile.econsole.modules.base.entity.Query;
import com.oceansoft.mobile.econsole.modules.jlwt.entity.IstPascMonitorApply;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wzy on 2016/2/1.
 */
@Repository
public interface IProjectMapper {

    List<ProjectInfo> getPrjYs(Query query);
    List<ProjectInfo> getYyNew(Query query);
    List<ProjectInfo> getBjNew(Query query);
    List<ProjectInfo> getPrjBlz(Query query);
    List<ProjectInfo> getPrjYbj(Query query);
    List<ProjectInfo> getPrjTh(Query query);

    ProjectInfo getPrjInfo(@Param("prjBillId") String prjBillId);

    int projectMyd(MydEvaluation mydEvaluation);
    int unDoPrj(@Param("prjBillId") String prjBillId);
    int unDoPrjStatus(@Param("prjBillId") String prjBillId);

    String getPrjNum(@Param("prjGuid") String prjGuid);

    int updateEvaluationgrade(MydEvaluation mydEvaluation);

    IstPascMonitorApply getMonitorApply(@Param("docno") String docno);

    int updateApplyStatus(@Param("status") String status,@Param("docno") String docno);

    int updateProjectComment(@Param("prjGuid")String prjGuid);

}
